import { SupplierRequest } from '@/plugins/supplier-request';

// 供应商升降级 - 无问题
export const setNoProblemService = (data, loadingFn) => SupplierRequest({
  url: '/supplierPromotionDemotion/no/problem',
  type: 'post',
  data,
  loadingFn
});

// 供应商升降级 - 查询
export const queryQualifiedDemotionService = (data, loadingFn) => SupplierRequest({
  url: '/supplierPromotionDemotion/qualified/demotion',
  type: 'post',
  data,
  loadingFn
});

// 供应商升降级 - 导出
export const exportQualifiedDemotionService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-qualified-demotion',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});
